import { http } from "@/utils/http";
import { baseUrlApi } from "./utils";


type homeResult = {
  page: any;
  result: any
};

/** 新增图片 */
export const addXpictireControllerInsert = (data?: object) => {
  return http.request<homeResult>("post", baseUrlApi("/xpictireController/insert"), { data });
};

/** 根据id删除图片 */
export const deleteXpictireControllerDelete = (userid?: string | number) => {
  return http.request<homeResult>("delete", baseUrlApi(`/xpictireController/delete/${userid}`));
};


/** 修改图片 */
export const updateXpictireControllerUpdate = (data?: object) => {
  return http.request<homeResult>("post", baseUrlApi("/xpictireController/update"), { data });
};


/** 分页查询 */
export const getXfactoryControllerSelectbypage = (data?: object) => {
  return http.request<homeResult>("post", baseUrlApi("/xpictireController/selectbypage"), { data });
};

/** 根据id查询 */
export const IdXpictireControllerSelect = (id) => {
  return http.request<homeResult>("get", baseUrlApi(`/xpictireController/select/${id}`));
};
















